package com.qingke.hibernate.dao;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.query.Query;

import com.qingke.hibernate.bean.Register;

public class RegisterDAO extends SystemDAO{

	public RegisterDAO(Session session) {
		super(session);
	}
	public List<Register> list(){
		Query<Register> query=session.createQuery("from Register",Register.class);
		return query.getResultList();
	}
}
